package com.saint.lt.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.saint.lt.dao.IssueDAO;
import com.saint.lt.domain.Issue;

@Service
public class IssueServiceImpl implements IssueService {

	@Autowired
    private IssueDAO issueDAO;
	
	@Override
	@Transactional
	public void addIssue(Issue issue) {
		issueDAO.add(issue);
	}

	@Override
	@Transactional
	public List<Issue> listIssues() {
		return issueDAO.list();
	}

}
